package top.mataiji.manager.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zhoubin
 * @since 1.0.0
 */
public class Order implements Serializable {
    /**
     *
     */
    private Integer id;

    /**
     * 订单号
     */
    private String orderId;

    /**
     * 订单金额
     */
    private Long orderMoney;

    /**
     * 订单状态
     */
    private Long orderStatus;

    /**
     * 联系人
     */
    private String orderContacts;

    /**
     * 电话
     */
    private String orderTel;

    /**
     * 地址
     */
    private String orderAddr;

    /**
     * 创建时间
     */
    private Date establishDate;

    /**
     * 更新时间
     */
    private Date updateDate;

    /**
     * 用户id
     */
    private Integer userid;

    /**
     * tb_order
     */
    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId == null ? null : orderId.trim();
    }

    public Long getOrderMoney() {
        return orderMoney;
    }

    public void setOrderMoney(Long orderMoney) {
        this.orderMoney = orderMoney;
    }

    public Long getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Long orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getOrderContacts() {
        return orderContacts;
    }

    public void setOrderContacts(String orderContacts) {
        this.orderContacts = orderContacts == null ? null : orderContacts.trim();
    }

    public String getOrderTel() {
        return orderTel;
    }

    public void setOrderTel(String orderTel) {
        this.orderTel = orderTel == null ? null : orderTel.trim();
    }

    public String getOrderAddr() {
        return orderAddr;
    }

    public void setOrderAddr(String orderAddr) {
        this.orderAddr = orderAddr == null ? null : orderAddr.trim();
    }

    public Date getEstablishDate() {
        return establishDate;
    }

    public void setEstablishDate(Date establishDate) {
        this.establishDate = establishDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderId=").append(orderId);
        sb.append(", orderMoney=").append(orderMoney);
        sb.append(", orderStatus=").append(orderStatus);
        sb.append(", orderContacts=").append(orderContacts);
        sb.append(", orderTel=").append(orderTel);
        sb.append(", orderAddr=").append(orderAddr);
        sb.append(", establishDate=").append(establishDate);
        sb.append(", updateDate=").append(updateDate);
        sb.append(", userid=").append(userid);
        sb.append("]");
        return sb.toString();
    }
}
